home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / twiki.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  154 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <!-- catalog entry:
  6.  
  7. <MODE NAME="twiki"        FILE="twiki.xml"
  8.                 FILE_NAME_GLOB="*.twiki"/>
  9.  
  10. -->
  11.  
  12. <MODE>
  13.     <PROPS>
  14.         <PROPERTY NAME="noTabs" VALUE="true" />
  15.         <PROPERTY NAME="wrap" VALUE="soft" />
  16.     </PROPS>
  17.     <RULES HIGHLIGHT_DIGITS="FALSE" IGNORE_CASE="FALSE">
  18.  
  19.         <!-- though not encouraged, HTML is supported -->
  20.         <IMPORT DELEGATE="html::MAIN"/>
  21.  
  22.         <!-- signature - a convention, not actual markup -->
  23.         <EOL_SPAN AT_LINE_START="TRUE" TYPE="COMMENT1">-- </EOL_SPAN>
  24.  
  25.         <!-- header -->
  26.         <EOL_SPAN_REGEXP HASH_CHAR="---+"
  27.             TYPE="KEYWORD1"
  28.             AT_LINE_START="TRUE"
  29.             >-{3}[+]{1,6}(?:!!)?\s</EOL_SPAN_REGEXP>
  30.  
  31.         <!-- bold -->
  32.         <SEQ_REGEXP
  33.             HASH_CHAR="*"
  34.             AT_LINE_START="FALSE"
  35.             TYPE="KEYWORD4"
  36.         >\*[^\s*][^*]*\*</SEQ_REGEXP>
  37.  
  38.         <!-- bold and italic -->
  39.         <SEQ_REGEXP
  40.             HASH_CHAR="__"
  41.             AT_LINE_START="FALSE"
  42.             TYPE="KEYWORD4"
  43.         >__\w.*?\w__</SEQ_REGEXP>
  44.  
  45.         <!-- italic -->
  46.         <SEQ_REGEXP
  47.             HASH_CHAR="_"
  48.             AT_LINE_START="FALSE"
  49.             TYPE="KEYWORD4"
  50.         >_\w.*?\w_</SEQ_REGEXP>
  51.  
  52.         <!-- bold and fixed font -->
  53.         <SEQ_REGEXP
  54.             HASH_CHAR="=="
  55.             AT_LINE_START="FALSE"
  56.             TYPE="KEYWORD4"
  57.         >==\w.*?\w==</SEQ_REGEXP>
  58.  
  59.         <!-- fixed font -->
  60.         <SEQ_REGEXP
  61.             HASH_CHAR="="
  62.             AT_LINE_START="FALSE"
  63.             TYPE="KEYWORD4"
  64.         >=\w.*?\w=</SEQ_REGEXP>
  65.  
  66.         <!-- separator -->
  67.         <EOL_SPAN AT_LINE_START="TRUE" TYPE="KEYWORD4">---</EOL_SPAN>
  68.  
  69.         <!-- wiki words -->
  70.         <SEQ_REGEXP HASH_CHARS="ABCDEFGHIJKLMNOPQRSTUVWXYZ" AT_WORD_START="TRUE" TYPE="KEYWORD2">[A-Z][A-Z.]*[a-z.]+(?:[A-Z][A-Z.]*[a-z.]*[a-z])+</SEQ_REGEXP>
  71.  
  72.         <!-- links -->
  73.         <SPAN TYPE="KEYWORD3">
  74.             <BEGIN>[[</BEGIN>
  75.             <END>]]</END>
  76.         </SPAN>
  77.  
  78.         <!-- verbatim -->
  79.         <SPAN TYPE="LITERAL2">
  80.             <BEGIN><verbatim></BEGIN>
  81.             <END></verbatim></END>
  82.         </SPAN>
  83.  
  84.         <!-- prevent a link -->
  85.         <SEQ TYPE="LITERAL2"><nop></SEQ>
  86.  
  87.         <!-- disable links -->
  88.         <SPAN TYPE="LITERAL2">
  89.             <BEGIN><noautolink></BEGIN>
  90.             <END></noautolink></END>
  91.         </SPAN>
  92.  
  93.         <!-- terms -->
  94.         <SEQ_REGEXP HASH_CHAR=" " TYPE="KEYWORD2" AT_LINE_START="FALSE"
  95.             >\s{3}\w(?:&nbsp;|-|\w)*?\w+:\s</SEQ_REGEXP>
  96.  
  97.         <!-- twiki variables -->
  98.         <SEQ_REGEXP HASH_CHAR="%"
  99.             TYPE="FUNCTION"
  100.             >%[A-Z]+(?:\{[^\}]+\})?%</SEQ_REGEXP>
  101.  
  102.         <KEYWORDS>
  103.             <!-- variables, just here for complete-word -->
  104.             <NULL>ATTACHURL</NULL>
  105.             <NULL>ATTACHURLPATH</NULL>
  106.             <NULL>BASETOPIC</NULL>
  107.             <NULL>BASEWEB</NULL>
  108.             <NULL>GMTIME</NULL>
  109.             <NULL>HOMETOPIC</NULL>
  110.             <NULL>HTTP_HOST</NULL>
  111.             <NULL>INCLUDE</NULL>
  112.             <NULL>INCLUDINGTOPIC</NULL>
  113.             <NULL>INCLUDINGWEB</NULL>
  114.             <NULL>MAINWEB</NULL>
  115.             <NULL>NOTIFYTOPIC</NULL>
  116.             <NULL>PUBURL</NULL>
  117.             <NULL>PUBURLPATH</NULL>
  118.             <NULL>REMOTE_ADDR</NULL>
  119.             <NULL>REMOTE_PORT</NULL>
  120.             <NULL>REMOTE_USER</NULL>
  121.             <NULL>SCRIPTSUFFIX</NULL>
  122.             <NULL>SCRIPTURL</NULL>
  123.             <NULL>SCRIPTURLPATH</NULL>
  124.             <NULL>SEARCH</NULL>
  125.             <NULL>SERVERTIME</NULL>
  126.             <NULL>SPACEDTOPIC</NULL>
  127.             <NULL>STARTINCLUDE</NULL>
  128.             <NULL>STATISTICSTOPIC</NULL>
  129.             <NULL>STOPINCLUDE</NULL>
  130.             <NULL>TOC</NULL>
  131.             <NULL>TOPIC</NULL>
  132.             <NULL>TOPICLIST</NULL>
  133.             <NULL>TWIKIWEB</NULL>
  134.             <NULL>URLENCODE</NULL>
  135.             <NULL>URLPARAM</NULL>
  136.             <NULL>USERNAME</NULL>
  137.             <NULL>WEB</NULL>
  138.             <NULL>WEBLIST</NULL>
  139.             <NULL>WEBPREFSTOPIC</NULL>
  140.             <NULL>WIKIHOMEURL</NULL>
  141.             <NULL>WIKINAME</NULL>
  142.             <NULL>WIKIPREFSTOPIC</NULL>
  143.             <NULL>WIKITOOLNAME</NULL>
  144.             <NULL>WIKIUSERNAME</NULL>
  145.             <NULL>WIKIUSERSTOPIC</NULL>
  146.             <NULL>WIKIVERSION</NULL>
  147.         </KEYWORDS>
  148.  
  149.     </RULES>
  150.  
  151. </MODE>
  152.  
  153.  
  154.